package com.bangdream.michelia.entity.courses;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.JSON;

/**
 * @date on 2018/8/9 0:12
 * @email 909732184@qq.com
 * 讲师
 */
public class TeacherListBean implements Parcelable {
    /**
     * id : af47de42e46a4c6ba0434147f64a8c63
     * createBy : 1
     * createTime : 2018-07-24 10:07:24
     * updateBy : 1
     * updateTime : 2018-07-24 10:07:24
     * delFlag : 0
     * orgId : a
     * createName : admin
     * courseId : 75f3d1b9a7fd469abc80f5c1ec623d44
     * teacherId : 85500d90d7bd4211badd102e0a40e3c6
     * teacherName : xiaoKTC
     */

    private String id;
    private String createBy;
    private String createTime;
    private String updateBy;
    private String updateTime;
    private String delFlag;
    private String orgId;
    private String createName;
    private String courseId;
    private String teacherId;
    private String teacherName;


    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.createBy);
        dest.writeString(this.createTime);
        dest.writeString(this.updateBy);
        dest.writeString(this.updateTime);
        dest.writeString(this.delFlag);
        dest.writeString(this.orgId);
        dest.writeString(this.createName);
        dest.writeString(this.courseId);
        dest.writeString(this.teacherId);
        dest.writeString(this.teacherName);
    }

    public TeacherListBean() {

    }

    protected TeacherListBean(Parcel in) {
        this.id = in.readString();
        this.createBy = in.readString();
        this.createTime = in.readString();
        this.updateBy = in.readString();
        this.updateTime = in.readString();
        this.delFlag = in.readString();
        this.orgId = in.readString();
        this.createName = in.readString();
        this.courseId = in.readString();
        this.teacherId = in.readString();
        this.teacherName = in.readString();
    }

    public static final Creator<TeacherListBean> CREATOR = new Creator<TeacherListBean>() {
        @Override
        public TeacherListBean createFromParcel(Parcel source) {
            return new TeacherListBean(source);
        }

        @Override
        public TeacherListBean[] newArray(int size) {
            return new TeacherListBean[size];
        }
    };
}
